package demo09.TemplateMethod;

public class Tea {
	
	void prepareRecipe() {//泡茶的方法
		boilWater();
		steepTeaBag();
		pourInCup();
		addLemon();
	}
 
	public void boilWater() {
		System.out.println("把水煮到沸腾");
	}
 
	public void steepTeaBag() {
		System.out.println("泡茶");
	}
 
	public void addLemon() {
		System.out.println("加入柠檬");
	}
 
	public void pourInCup() {
		System.out.println("倒入杯");
	}
}
